<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="/WEB-INF/tlds/nodes-faces.tld" prefix="n" %>

<f:subview id="templateApplets">

    <h:panelGroup id="template" layout="block" style="display:inline" rendered="#{NodesBean.appletSubstitution && DataBean.template}"/>
    <n:applet function="template"
              code="offset.nodes.client.vdialog.view.template.EditTemplateApplet" codebase="#{NodesBean.contextPath}" jar="dialog.jar"
              width="0" height="0" rendered="#{NodesBean.appletSubstitution && DataBean.template}">
        <f:param name="service" value="#{NodesBean.dialogPath}"/>
        <f:param name="base" value="#{NodesBean.repositoryPath}"/>
        <f:param name="path" value="#{PathBean.path}"/>
    </n:applet>

    <n:applet rendered="#{!NodesBean.appletSubstitution && DataBean.components.editTemplate.rendered}"
              code="offset.nodes.client.vdialog.view.template.EditTemplateApplet" codebase="#{NodesBean.contextPath}" jar="dialog.jar"
              width="0" height="0">
        <f:param name="service" value="#{NodesBean.dialogPath}"/>
        <f:param name="base" value="#{NodesBean.repositoryPath}"/>
        <f:param name="path" value="#{PathBean.path}"/>
    </n:applet>

</f:subview>